//
//  YanZhengViewController.m
//  ForengnMenu
//
//  Created by @-@ on 16/1/22.
//  Copyright © 2016年 余旺. All rights reserved.
//

#import "YanZhengViewController.h"

@interface YanZhengViewController ()

@end

@implementation YanZhengViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIButton * button = [UIButton buttonWithType:UIButtonTypeCustom];
    
    button.frame = CGRectMake(0, 0, 60, 30);
    
    [button setTitle:@"<返回" forState:UIControlStateNormal];
    [button setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];

    [button addTarget:self action:@selector(backAction) forControlEvents:UIControlEventTouchUpInside];
    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:button];
    
    
    UILabel * l = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
    l.text = @"忘记密码";
    l.textAlignment = NSTextAlignmentCenter;
    self.navigationItem.titleView = l;
    
    self.yanZhengLabel.text = @"你的手机已注册，你可以通过短信验证码登陆";

}

//当界面消失之前调用
- (void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
    
    //让分割线不透明
    [self.navigationController.navigationBar setShadowImage:[UIImage imageNamed:@""]];
    
}

//返回
- (void)backAction{
    [self.navigationController popViewControllerAnimated:YES];
}

- (IBAction)dengluAction:(id)sender {
    
    [self performSegueWithIdentifier:@"showYanZhengMa" sender:nil];
    
}
- (IBAction)cannotAction:(id)sender {
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
